/**
 * Created with CLion.
 * Description: 
 * User: loong
 * Date: 2020-04-30
 * Time: 11:19
 */
#ifndef GOFSTUDY_HUMMERMODEL_H
#define GOFSTUDY_HUMMERMODEL_H


class HummerModel{
public:
    virtual void start() = 0;
    virtual void stop() = 0;
    virtual void alarm() = 0;
    virtual void engineBoom() = 0;
    virtual bool isAlarmFlag() = 0;

    virtual void run(){
        start();
        engineBoom();
        if (isAlarmFlag())
            alarm();
        stop();
    };

};


#endif //GOFSTUDY_HUMMERMODEL_H
